# !coding=utf-8

import os
import gevent.monkey
import multiprocessing

gevent.monkey.patch_all()

debug = True
loglevel = 'debug'
bind = '127.0.0.1:5000'
pidfile = '/var/log/gunicorn/gunicorn.pid'
logfile = '/var/log/gunicorn/debug.log'

# 启动进程数
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = 'gunicorn.workers.ggevent.GeventWorker'
x_forwarded_for_header = 'X-FORWARDED-FOR'